package com.ktjy.ktmall.domain.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ktjy.common.annotation.Excel;
import com.ktjy.common.core.domain.BaseEntity;
import lombok.Data;

@Data
@TableName("t_cart_dto")
public class CartDTO extends BaseEntity {
    @Excel(name = "购物车编号")
    @TableField(value = "id")
    private Long id;   //购物车编号
    @Excel(name = "会员名称")
    @TableField(value = "user_name")
    private String username;// 会员名称
    @Excel(name = "商品名称")
    @TableField(value = "goods_name")
    private String goodsName;// 商品名称
    @Excel(name = "当前价格")
    @TableField(value = "price")
    private Integer Price;// 当前价格
    @Excel(name = "商品数量")
    @TableField(value = "goods_count")
    private Integer goodsCount;// 商品数量


    @Override
    public String toString() {
        return "CartDTO{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", goodsName='" + goodsName + '\'' +
                ", Price=" + Price +
                ", goodsCount=" + goodsCount +
                '}';
    }
}
